export default {
  createBar(title,labels,datas,tooltip){
    return {
      title: {
        text: title
      },
      tooltip: {},
      xAxis: {
        data: labels
      },
      yAxis: {},
      series: [{
        name: tooltip,
        type: 'bar',
        data: datas
      },]
    }
  },
  createBarArray(title,labels,data){

    return {
      title: {
        text: title
      },
      tooltip: {},
      xAxis: {
        data: labels
      },
      yAxis: {},
      series: data
    }
  }
}
